const form = [{
    key: 'pz',
    label: '品种',
    labelWidth: 80,
    required: true,
    placeholder: '请填写'
}, {
    key: 'dh',
    label: '代号',
    labelWidth: 80,
    required: false,
    placeholder: '请填写'
}, {
    key: 'hsl',
    label: '含水量（%）',
    validatorNumber:true,
    labelWidth: 110,
    required: false,
    placeholder: '请填写'
},{
    key: 'sio2',
    label: 'SIO2（%）',
    validatorNumber:true,
    labelWidth: 110,
    required: false,
    placeholder: '请填写'
}, {
    key: 'lhl',
    label: '氯含量（%）',
    validatorNumber:true,
    labelWidth: 110,
    required: false,
    placeholder: '请填写'
}, {
    key: 'zjl',
    label: '总碱量（%）',
    validatorNumber:true,
    labelWidth: 110,
    required: false,
    placeholder: '请填写'
},{
    key: 'bbmj',
    label: '比表面积（BET法）m2/g',
    validatorNumber:true,
    labelWidth: 180,
    required: false,
    placeholder: '请填写'
}, {
    key: 'hgl',
    label: '含固量（液料）',
    validatorNumber:true,
    labelWidth: 140,
    required: false,
    placeholder: '请填写'
}, {
    key: 'fsx',
    label: '放射性',
    labelWidth: 80,
    required: false,
    placeholder: '请填写'
},{
    key: 'yzjglfyx',
    label: '抑制碱骨料反应性',
    labelWidth: 160,
    required: false,
    placeholder: '请填写'
},{
    key: 'kllzstx',
    label: '抗氯离子渗透性',
    labelWidth: 160,
    required: false,
    placeholder: '请填写'
},{
    key: 'ssl',
    label: '烧失量（%）',
    validatorNumber:true,
    labelWidth: 110,
    required: true,
    placeholder: '请填写'
},{
    key: 'xslb',
    label: '需水量比（%）',
    validatorNumber:true,
    labelWidth: 120,
    required: true,
    placeholder: '请填写'
},{
    key: 'qthxzs',
    label: '7天活性指数（%）',
    validatorNumber:true,
    labelWidth: 160,
    required: true,
    placeholder: '请填写'
},{
    key: 'zxbz',
    label: '执行标准',
    labelWidth: 80,
    required: true,
    placeholder: '请填写'
}]


const requiredArr = []
const notRequiredArr = []

let tempArr = []
form.forEach(item => {
    if(item.required) {
        tempArr.push(item)
    }else {
        notRequiredArr.push(item)
    }
    if( tempArr.length >= 2 ) {
        requiredArr.push(tempArr)
        tempArr = []
    }
})

if( tempArr.length > 0 ) {
    requiredArr.push(tempArr)
    tempArr = []
}

export default {
    requiredArr,
    notRequiredArr
};